package com.nike.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class ActionUtil {
	public static String getRandomInt19(){ 
		String orderNo = "" ; 
		String trandNo = String.valueOf((Math.random() * 9 + 1) * 1000000); 
		String sdf = new SimpleDateFormat("yyyyMMddHHMMSS").format(new Date()); 
		orderNo = trandNo.toString().substring(0, 4); 
		orderNo = orderNo + sdf ; return orderNo ; 
	}
	public static String getRandomInt18(){ 
		String orderNo = "" ; 
		String trandNo = String.valueOf((Math.random() * 9 + 1) * 1000000); 
		String sdf = new SimpleDateFormat("yyyyMMddHHMMSS").format(new Date()); 
		orderNo = trandNo.toString().substring(0, 4); 
		orderNo = orderNo + sdf ; return orderNo ; 
	}
	
	public static String getRandomShoeSize() {
		String[] shoeSize = {"4.5","5","5.5", "6", "6.5", "7", "7.5", "8", "8.5", "9"};
		Random random = new Random();
		int size = random.nextInt(shoeSize.length);
		return shoeSize[size];
	}
	public static String getRandomSex() {
		String[] sexSize = {"M","F"};
		Random random = new Random();
		int size = random.nextInt(sexSize.length);
		return sexSize[size];
	}
	public static int getRandomHeight() {
		Random random = new Random();
		return (155+random.nextInt(20));
	}
	public static int getRandomWeight() {
		Random random = new Random();
		return (45+random.nextInt(30));
	}
	public static void main(String[] args) {
		System.out.println(getRandomWeight());
	}
}
